<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<link rel="stylesheet" href="__PUBLIC__/css/inc.css" />
	<title>修改属性分类</title>
	<jquery/>
	<script type="text/javascript">
		var url='__CONTROL__/addAttr';
	</script>
	<js file='__CONTROL_TPL__/js/js.js' />
	
</head>
<body class="bgwhite-1">
	<div class="bbc fm pl10 pt10 pb5">
		<a href="{|U:'GoodsType/index'}" class="white p5 f14 bggray2 a">商品类型</a>
		<a href="{|U:'index',array('gtid'=>$_GET['gtid'])}" class="white p5 f14 bggray2 a">属性列表</a>
		<a href="{|U:'add',array('gtid'=>$_GET['gtid'])}" class="white p5 f14 bgteal a">添加属性</a>
	</div>
	<form method="post">
		<div class="p10">
			<table class="form table">
				<tr>
					<th colspan='2'>修改商品属性列表</th>
				</tr>
				<tr>
					<td class="tr w100 f14 fm"><span class="pr10">属性名</span></td>
					<td><input name='attr_name' type="text" class='ml10 w300' value="{$cdata.attr_name}" /></td>
				</tr>
				<tr>
					<td class="tr w100 f14 fm"><span class="pr10">规格</span></td>
					<td>
						
						<label for="s1" class='ml10'>
							<input id='s1' class='radio' type="radio" name='is_spec' value='0' <if value='$cdata.is_spec eq 0'>checked=""</if> /> 普通属性
						</label>
						<label for="s2" class='ml10'>
							<input id='s2' class='radio' type="radio" name='is_spec' value='1' <if value='$cdata.is_spec eq 1'> checked="" </if> /> 规格
						</label>

					</td>
				</tr>
			</table>
			<div id="addGoodsAttr">
				<?php require $vtpl ;?>
			</div>
		</div>
		<div class="fixed b0 f16 fm pct100 btc bgwhite-3 p2">
			<input type="hidden" value='{$hd.get.gtid}' name='gtid' />
			<input type="hidden" value='{$cdata.acid}' name='acid' />
			<input type="hidden" value='{$cdata.show_type}' name='show_type' />
			<p class="p5 tc"><input type="submit" class="btn bggreen1" value='确定操作' /></p>
		</div>
	</form>
</body>
</html>